Skip to main content
POST
Close collection case

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json

Close reason

close_reason
enum<string>
required

Why the case was closed. null while the case is open.

Available options:
paid,
settled,
written_off
reason
string | null

Free-text explanation logged on the case.

Maximum string length: 500

Response

id
string
required

Collection case ID.

Example:

"ccs_3GeHvsTaFsPgMf"

customer
object | null
required

Customer the case recovers.

playbook_id
string
required

ID of the playbook running the case.

Example:

"cpb_2bHxVsTaFsPgMf"

status
enum<string>
required

Status of the case.

Available options:
agent_working,
promised,
disputed,
paused,
closed
close_reason
enum<string> | null
required

Why the case was closed. null while the case is open.

Available options:
paid,
settled,
written_off,
merged
owner_user_id
string | null
required

ID of the user who owns the case.

Example:

"usr_8eKnRm5bWdVQk3"

needs_review
boolean
required

Whether the case waits for a person.

sender_id
string | null
required

ID of the sender profile the case emails are sent as.

agent_paused_reason
string | null
required

Why the agent is paused on the case.

agent_status
enum<string>
required

thinking while an agent run is requested or running on the case, else idle.

Available options:
idle,
thinking
agent_run_reason
enum<string> | null
required

Why the agent is thinking. null when the agent is idle.

Available options:
case_opened,
step_due,
email_received,
silence_checkpoint,
partial_payment,
payment_unmatched,
promise_due,
promise_broken,
installment_missed,
manual,
user_instruction,
proposal_rejected,
proposals_decided,
case_closed
escalation
object | null
required

Set while the agent waits for a person to answer it on the case.

currency
enum<string>
required

Currency of the case.

Available options:
EUR,
AED,
AFN,
XCD,
ALL,
AMD,
AOA,
ARS,
USD,
AUD,
AWG,
AZN,
BAM,
BBD,
BDT,
BGN,
BHD,
BIF,
XOF,
BMD,
BND,
BOB,
BRL,
BSD,
BTN,
NOK,
BWP,
BYR,
BZD,
CAD,
CDF,
XAF,
CHF,
NZD,
CLP,
CNY,
COP,
CRC,
CUP,
CVE,
ANG,
CZK,
DJF,
DKK,
DOP,
DZD,
EGP,
MAD,
ERN,
ETB,
FJD,
FKP,
GBP,
GEL,
GHS,
GIP,
GMD,
GNF,
GTQ,
GYD,
HKD,
HNL,
HRK,
HTG,
HUF,
IDR,
ILS,
INR,
IQD,
IRR,
ISK,
JMD,
JOD,
JPY,
KES,
KGS,
KHR,
KMF,
KPW,
KRW,
KWD,
KYD,
KZT,
LAK,
LBP,
LKR,
LRD,
LSL,
LYD,
MDL,
MGA,
MKD,
MMK,
MNT,
MOP,
MRO,
MUR,
MVR,
MWK,
MXN,
MYR,
MZN,
NAD,
XPF,
NGN,
NIO,
NPR,
OMR,
PAB,
PEN,
PGK,
PHP,
PKR,
PLN,
PYG,
QAR,
RON,
RSD,
RUB,
RWF,
SAR,
SBD,
SCR,
SDG,
SEK,
SGD,
SHP,
SLL,
SOS,
SRD,
SSP,
STD,
SYP,
SZL,
THB,
TJS,
TMT,
TND,
TOP,
TRY,
TTD,
TWD,
TZS,
UAH,
UGX,
UYU,
UZS,
VEF,
VND,
VUV,
WST,
YER,
ZAR,
ZMW,
ZWL
Example:

"EUR"

amount_at_open
string
required

Late balance when the case opened, in major units, as a decimal string.

Pattern: ^\d+(\.\d+)?$
Example:

"1250.00"

outstanding_amount
string
required

Amount the case invoices still owe in the case currency, in major units, as a decimal string.

Pattern: ^\d+(\.\d+)?$
Example:

"1250.00"

other_currency_invoice_count
integer
required

Number of case invoices in another currency, left out of outstanding_amount.

days_late
integer
required

Days past the due date of the oldest case invoice.

Example:

21

invoice_count
integer
required

Number of invoices in the case.

Example:

2

next_action_at
string<date-time> | null
required

Date of the next recovery step.

Example:

"2024-12-20T16:04:11Z"

next_step
object | null
required

Next recovery step of the case.

opened_at
string<date-time>
required

Opening date.

Example:

"2024-12-20T16:04:11Z"

closed_at
string<date-time> | null
required

Closing date.

Example:

"2024-12-20T16:04:11Z"

updated_at
string<date-time>
required

Last update date.

Example:

"2024-12-20T16:04:11Z"

invoices
object[]
required

Invoices of the case, removed ones included.

steps
object[]
required

Recovery plan of the case, in order.

activities
object[]
required

Activity log of the case, newest first.

next
object
required

What happens next on the case.